
func void b_enter_deadgrot_kapitel_1()
{
};


var int enterdeadgrot_kapitel2;

func void b_enter_deadgrot_kapitel_2()
{
	if(ENTERDEADGROT_KAPITEL2 == FALSE)
	{
		ENTERDEADGROT_KAPITEL2 = TRUE;
	};
};


var int enterdeadgrot_kapitel3;

func void b_enter_deadgrot_kapitel_3()
{
	if(ENTERDEADGROT_KAPITEL3 == FALSE)
	{
		ENTERDEADGROT_KAPITEL3 = TRUE;
	};
};


var int enterdeadgrot_kapitel4;

func void b_enter_deadgrot_kapitel_4()
{
	if(ENTERDEADGROT_KAPITEL4 == FALSE)
	{
		ENTERDEADGROT_KAPITEL4 = TRUE;
	};
};


var int enterdeadgrot_kapitel5;

func void b_enter_deadgrot_kapitel_5()
{
	if(ENTERDEADGROT_KAPITEL5 == FALSE)
	{
		ENTERDEADGROT_KAPITEL5 = TRUE;
	};
};


var int enterdeadgrot_kapitel6;

func void b_enter_deadgrot_kapitel_6()
{
	if(ENTERFREEMINE_KAPITEL6 == FALSE)
	{
		if(Npc_IsDead(none_102_kreol))
		{
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_01");
			Wld_InsertNpc(Zombie01,"FP_ROAM_DG_02");
			Wld_InsertNpc(Zombie02,"FP_ROAM_DG_03");
			Wld_InsertNpc(skeleton_dark,"FP_ROAM_DG_04");
			Wld_InsertNpc(Zombie03,"FP_ROAM_DG_05");
			Wld_InsertNpc(Zombie04,"FP_ROAM_DG_06");
			Wld_InsertNpc(Zombie01,"FP_ROAM_DG_07");
			Wld_InsertNpc(Zombie02,"FP_ROAM_DG_08");
			Wld_InsertNpc(skeleton_dark,"FP_ROAM_DG_09");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_10");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_11");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_12");
			Wld_InsertNpc(skeleton_dark,"FP_ROAM_DG_13");
			Wld_InsertNpc(Zombie03,"FP_ROAM_DG_14");
			Wld_InsertNpc(Zombie04,"FP_ROAM_DG_15");
			Wld_InsertNpc(Zombie01,"FP_ROAM_DG_16");
			Wld_InsertNpc(skeleton_dark,"FP_ROAM_DG_17");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_18");
			Wld_InsertNpc(Zombie02,"FP_ROAM_DG_19");
			Wld_InsertNpc(Zombie03,"FP_ROAM_DG_20");
			Wld_InsertNpc(Zombie04,"FP_ROAM_DG_21");
			Wld_InsertNpc(skeleton_dark,"FP_ROAM_DG_22");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_23");
			Wld_InsertNpc(Zombie01,"FP_ROAM_DG_24");
			Wld_InsertNpc(Zombie02,"FP_ROAM_DG_25");
			Wld_InsertNpc(Zombie03,"FP_ROAM_DG_26");
			Wld_InsertNpc(skeleton_dark,"FP_ROAM_DG_27");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_28");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_29");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_30");
			Wld_InsertNpc(skeleton_dark,"FP_ROAM_DG_31");
			Wld_InsertNpc(Zombie04,"FP_ROAM_DG_32");
			Wld_InsertNpc(skeleton_warrior_dark,"FP_ROAM_DG_33");
			Wld_InsertNpc(skeleton_warrior_dark,"FP_ROAM_DG_34");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_BELIAR_01");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_BELIAR_02");
			Wld_InsertNpc(Skeleton,"FP_ROAM_DG_GUARD");
			Wld_InsertNpc(SkeletonMage,"DG_MAGE");
		};
		ENTERDEADGROT_KAPITEL6 = TRUE;
	};
};

func void b_enter_deadgrot()
{
	B_InitNpcGlobals();
	if(Kapitel >= 1)
	{
		b_enter_deadgrot_kapitel_1();
	};
	if(Kapitel >= 2)
	{
		b_enter_deadgrot_kapitel_2();
	};
	if(Kapitel >= 3)
	{
		b_enter_deadgrot_kapitel_3();
	};
	if(Kapitel >= 4)
	{
		b_enter_deadgrot_kapitel_4();
	};
	if(Kapitel >= 5)
	{
		b_enter_deadgrot_kapitel_5();
	};
	if(Kapitel >= 6)
	{
		b_enter_deadgrot_kapitel_6();
	};
	CurrentLevel = DEADGROT_ZEN;
	B_InitNpcGlobals();
};

